<?php
   /*
    * 前台 产品展示
    */
   class Show extends Info{
   	
	   	public function __construct(){
	   		parent::__construct();
	   	}
		
		public function InfoContent(){
			$categoryid = intval($_GET['categoryid']);
			$category = DB::fetch_row("select *from `bb_category` as C left join `bb_category_setting` as CS 
			            on `C`.`categoryid`=`CS`.`categoryid` where `C`.`categoryid`='{$categoryid}'");
			$path    = $category['path'];
			$infoid = $_GET['infoid'];
			$info   = DB::fetch_row("select *from `bb_info` as I left join `bb_info_info` as II on I.`infoid`=II.`infoid` where I.`infoid`='{$infoid}'");
			$infoid = $info['infoid'];
			$show_images = DB::fetch_array("select *from `bb_show_img` as SI left join `bb_file` as F on SI.`objectid`=F.`objectid` where `infoid`='{$infoid}' ");
			$info['show_images'] = $show_images;
			$this->frontSmarty->assign("info",$info);
			$this->frontSmarty->display("Html/{$path}/HeaderGroup/index".$this->terminal.".html");
			$this->frontSmarty->display("Html/{$path}/InfoGroup/index".$this->terminal.".html");
			$this->frontSmarty->display("Html/{$path}/FooterGroup/index".$this->terminal.".html");
		}

   }




?>